package com.onepiece.shipelves.common.sort;

/**
 * @author guoyanjiang
 */
public abstract class AbstractBasePageReq implements BasePageReq {

    private Integer page;
    private Integer count;
    private String orderField;
    private String orderType;

    public AbstractBasePageReq() {
    }

    public AbstractBasePageReq(String orderField, String orderType) {
        this.orderField = orderField;
        this.orderType = orderType;
    }

    public AbstractBasePageReq(Integer page, Integer count, String orderField, String orderType) {
        this.page = page;
        this.count = count;
        this.orderField = orderField;
        this.orderType = orderType;
    }

    @Override
    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    @Override
    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    @Override
    public String getOrderField() {
        return orderField;
    }

    public void setOrderField(String orderField) {
        this.orderField = orderField;
    }

    @Override
    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }
}